//
//  ViewController.m
//  03-自定义KVC流程
//
//  Created by Cooci on 2019/12/9.
//  Copyright © 2019 Cooci. All rights reserved.
//

#import "ViewController.h"
#import "LGPerson.h"
#import "NSObject+LGKVC.h"
#import "NSObject+CDKVC.h"
#import <objc/runtime.h>
//#import <objc>

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    LGPerson *person = [[LGPerson alloc] init];
//    [person lg_setValue:@"大师班牛逼" forKey:@"name"];
    [person cd_setValue:@"6666" forKey:@"name"];
    
//    NSLog(@"%@-%@-%@-%@",person->_name,person->_isName,person->name,person->isName);
    
<<<<<<< HEAD
    
    
    Class cls1 = [person class];
    Class cls2 = [LGPerson class];
    Class cls3 = object_getClass(person);
   
    NSLog(@"%@ - %@ - %@", cls1, cls2, cls3);
    
=======
    [person valueForKey:@""];
    
    
>>>>>>> fc610b58131a4362c22ad74812e1d8e02e653cbf
}


@end
